package com.cd.socialMarketing.model;

/** @author Agustin Cingolani
 *  02/06/2009
 */

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "estado")
@SequenceGenerator(name = "estadoIdSeq", sequenceName = "estado_id_seq")
public class Estado extends AbstractEntityLong {

	public static final Long INGRESADO = new Long(1);
	public static final Long CONFIRMADO = new Long(2);
	public static final Long CANCELADO = new Long(3);
	
	private String nombre;

	@Id 
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "estadoIdSeq")		
	@Override
    public Long getId() {
        return super.id;
    }
	
	@Column(name = "nombre", nullable=false)
    public String getNombre() {
        return nombre;
    }

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

}
